<?php namespace Common\Model;
use Hdphp\Model\Model;

class Hurl extends Model
{
	protected $table='hurl';
	protected $validate=array(
	   	array('huurl','required','收货地址不能为空',3,3),
		array('huname','required','收货人不能为空',3,3),
		);
    public function store(){
    	if (!$this->create()) return false;
    	$this->data['homeuser_id']=$_SESSION['id'];
    	$this->add();
    	return true;
    }
}
?>